export default defineNitroPlugin((nitroApp) => {
  nitroApp.hooks.hook('afterResponse', (event) => {
    console.log(
      `[---- ${new Date().toISOString()}] ${event.method} ${event.path} - ${event.context.duration}ms | Status: ${event.node.res.statusCode}`,
    );
  });
});
